package com.crm.web.admin;

import com.crm.entity.SysDictData;
import com.crm.result.Result;
import com.crm.service.CourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/system/dict/data")
@CrossOrigin
public class CourseDetailController {

    @Autowired
    private CourseService courseService;

    @GetMapping("/type/{subject}")
    public Result CourseDetail(@PathVariable String subject){
        List<SysDictData> list=courseService.subject(subject);
        return Result.success(list);
    }


}
